<template>
    <div class="index">
        <el-input v-model="input" placeholder="请输入内容" style="width:100px;margin: 20px;"></el-input>
        <el-button type="primary" @click="inputVal">{{msg}}</el-button>
    </div>
</template>

<script>
export default {
  name: 'Index',
  data() {
    return {
        input: '',
        msg: "提交"
    }
  },
  methods: {
    inputVal() {
        console.log(this.input)
    }
  }
}
</script>